import Http from '@/http'

export function balanceApi(){
    return Http.get('user/balance')
}

export function queryFreePayApi() {
    return Http.get('user/free/pay/status')
}

export function balanceListApi(){
    return Http.get('user/balance/list')
}

export function authApi(data) {
    return Http.post('user/auth', data)
}

export function uploadAvatarNicknameApi(avatar,nickname) {
    return Http.uploadFile('user/upload/info', {name:'avatar', path : avatar}, {nickname})
}

export function updateInfoApi(data:ay) {
    return Http.post('user/update/info', data)
}